﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.ComponentModel.Composition;
using Microsoft.Practices.Prism.Regions;

namespace EIA.SLClient.ProjectManage.Basic
{
	/// <summary>
	/// ToolProjectCreateView.xaml 的交互逻辑
	/// </summary>
    [Export]
    [ViewSortHint("01")]
    public partial class ToolProjectCreateView : UserControl
	{
        public ToolProjectCreateView()
		{
			this.InitializeComponent();
        }

        [Import]
        public IRegionManager RegionManager { get; set; }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            RegionManager.RequestNavigate(EIA.SLClient.ProjectManage.Infrastructure.RegionNames.PopupRegion, typeof(ProjectCreateView).FullName);
            SimpleMvvmToolkit.MessageBus.Default.Notify<EIA.PM.Model.TProjectBasic>(EIA.SLClient.ProjectManage.Infrastructure.MessageTokens.PROJECT_NEW, this, new SimpleMvvmToolkit.NotificationEventArgs<EIA.PM.Model.TProjectBasic>("", null));
        }
    }
}